package com.xtoad.ecms.baseinfo.dto;

import com.xtoad.ecms.common.web.base.BaseDTO;

import java.util.List;

/**
 * 页面类通用DTO类
 *
 * @author xtoad
 * @date 2021/01/17
 */
public class WebPageDTO extends BaseDTO {

    /**
     * 页面标题
     */
    private String title;

    /**
     * url
     */
    private String url;

    /**
     * 页面资源
     */
    private List<PageElementDTO> elements;

    /**
     * 获取 页面标题
     */
    public String getTitle() {
        return this.title;
    }

    /**
     * 设置 页面标题
     */
    public void setTitle(String title) {
        this.title = title;
    }

    /**
     * 获取 url
     */
    public String getUrl() {
        return this.url;
    }

    /**
     * 设置 url
     */
    public void setUrl(String url) {
        this.url = url;
    }

    /**
     * 获取 页面资源
     */
    public List<PageElementDTO> getElements() {
        return this.elements;
    }

    /**
     * 设置 页面资源
     */
    public void setElements(List<PageElementDTO> elements) {
        this.elements = elements;
    }

    @Override
    public String toString() {
        return "WebPageDTO{" +
                ", title='" + title + '\'' +
                ", url='" + url + '\'' +
                ", elements=" + elements +
                "} " + super.toString();
    }
}
